package cn.knight.student.service.impl;

import cn.knight.student.domain.Classes;
import cn.knight.student.mapper.StudentMapper;
import cn.knight.student.service.IClassesService;
import cn.knight.student.mapper.ClassesMapper;
import cn.knight.basic.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author winnie
 * @since 2022-07-03
 */
@Service
public class ClassesServiceImpl extends BaseServiceImpl<Classes> implements IClassesService {

    @Autowired
    private ClassesMapper classesMapper;

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public void remove(Long id) {
        studentMapper.classesremove(id);
        classesMapper.remove(id);
    }

    @Override
    public void patchDel(Long[] ids) {
        studentMapper.classespatchDel(ids);
        classesMapper.patchDel(ids);
    }
}
